<!DOCTYPE html>
<html lang="zh-cn">
    <head>
    <include file="Common:intoHead"/>
    <title>{$channelDetail.name} - {:C('siteName')}</title>
</head>
<body>
<include file="Common:header" />

<div class="container" style="margin-top:80px;">

    <div class="row">
        <div class="col-md-8">

            <div class="alert alert-success alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                {:W('Channel/linkMenu')} <span class="pull-right">{$articleList.cacheInfo}</span>
            </div>

            <volist name="articleList.info" id="articleVo">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="badge pull-right">{$articleVo.visitNums}</span>
                            <a href="/article-{$articleVo.cid}-{$articleVo.id}.html">{$articleVo.title}</a>
                        </h4>
                    </div>
                    <div class="panel-body">
                        <php>if($articleVo['thumbnail']){</php><p><img src="{$articleVo.thumbnail}" /></p><php>}</php>
                        <p>{$articleVo.summary}</p>
                    </div>
                    <div class="panel-footer">
                        <em class="pull-right"><a href="/article-{$articleVo.cid}-{$articleVo.id}.html">查看全文</a></em>
                        <em>最后更新：{$articleVo.uTime|timeFormat}</em>
                    </div>
                </div>
            </volist>
            <div class="pagination">{$articleList.page}</div>
        </div>

        <div class="col-md-4 col-sm-12">

            <form class="form-group" action="{:U('Article/search')}">
                <div class="form-group input-group">
                    <input type="text" name="keyWords" class="form-control" placeholder="请输入标题/内容关键词" value="{$_GET['kw']}">
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-default submit"><i class="glyphicon glyphicon-search"></i>
                        </button>
                    </span>
                </div>
            </form>

            <ul class="list-unstyled">
                {:W('Channel/brotherMenu')}
            </ul>

            <div class="panel panel-red">
            <div class="panel-heading"><h4 class="panel-title"><i class="fa fa-fire"></i> 热门文章</h4></div>
                <div class="list-group">
                    <list model="Article" fields="id,cid,title" limit="10" order="visitNums DESC">
                        <a href="/article-{$cid}-{$id}.html" class="list-group-item">{$title}</a>
                    </list>
                </div>
            </div>

        </div>
    </div>
</div>
<include file="Common:footer" />

</body>
</html>